package com.example.demo.modules.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.demo.modules.enums.UserState;
import com.example.demo.modules.enums.UserType;
import lombok.Data;

import java.io.Serializable;

/**
 * @TableName sys_user
 */
@TableName(value = "sys_user")
@Data
public class SysUser implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     *
     */
    private String email;

    /**
     *
     */
    private String mobile;

    /**
     *
     */
    private String nickName;

    /**
     *
     */
    private UserType userType;

    /**
     *
     */
    private UserState state;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}